The Height of q-Binary Search Trees

نویسندگان

  • Michael Drmota
  • Helmut Prodinger
چکیده

The paper [8] introduces for the first time a meaningful q–model of binary search trees: instead of binary search trees, one considers tournament trees, which differ only marginally from binary search trees; if one starts from a permutation ( 1 2 ··· n π1 π2 ··· πn ) , then one inserts the number i instead of the number πi. Thus, traversing the tree in inorder, we might think of the associated permutation as ρ1σ, where 1 goes into the root, and ρ resp. σ form (recursively) the left resp. right subtree. We could have called this paper “The Height of q-Tournament Trees;” however we decided not to do so since binary search trees are by far better known, both, in the community of theoretical computer scientists, and combinatorialists. A nice reference for tournament trees and increasing trees in general is [2]. Now instead of considering permutations π1π2 · · ·πn, we consider words over the alphabet {1,2,3, . . .}, and (geometric) probabilities attached to the letters, i. e., the probability of letter i is pqi−1, with p + q = 1. The binary search tree is then constructed by writing a nonempty word w as w = xay, where a is the smallest letter occurring, and x ∈ {a+1,a+2, . . .}∗ and y ∈ {a,a+1, . . .}∗. The letter a goes into the root and x resp. y form the left resp. right subtree. The paper [8] dealt with the path length; here we consider the height. The height of a binary search tree (and thus of the trees in our model) is defined to be the largest number of nodes in a path from the root to a leaf; the empty tree (related to the empty word) has height 0. We will prove that the expected height, when considering random words of length n, is asymptotic to pn; the variance will also be computed as well as a Gaussian limit law. (The letter p will always denote 1− q in this paper.) Recall that the result for traditional binary search trees is ∼ c logn with c = 4.31107, see [3]; unfortunately we do not get that result as the limit q→ 1 as it so happened for the path length. However, nothing

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Profile and Height of Random Binary Search Trees

The purpose of this article is to survey recent results on distributional properties of random binary search trees. In particular we consider the profile and the height.

متن کامل

Probabilistic analysis of the asymmetric digital search trees

In this paper, by applying three functional operators the previous results on the (Poisson) variance of the external profile in digital search trees will be improved. We study the profile built over $n$ binary strings generated by a memoryless source with unequal probabilities of symbols and use a combinatorial approach for studying the Poissonized variance, since the probability distribution o...

متن کامل

P´olya Urn Models and Connections to Random Trees: A Review

This paper reviews P´olya urn models and their connection to random trees. Basic results are presented, together with proofs that underly the historical evolution of the accompanying thought process. Extensions and generalizations are given according to chronology: • P´olya-Eggenberger’s urn • Bernard Friedman’s urn • Generalized P´olya urns • Extended urn schemes • Invertible urn schemes ...

متن کامل

General Balanced Trees

We show that, in order to achieve efficient maintenance of a balanced binary search tree, no shape restriction other than a logarithmic height is required. The obtained class of trees, general balanced trees, may be maintained at a logarithmic amortized cost with no balance information stored in the nodes. Thus, in the case when amortized bounds are sufficient, there is no need for sophisticate...

متن کامل

Smoothed Analysis of the Height of Binary Search Trees

Binary search trees are one of the most fundamental data structures. While the height of such a tree may be linear in the worst case, the average height with respect to the uniform distribution is only logarithmic. The exact value is one of the best studied problems in average case complexity. We investigate what happens in between by analysing the smoothed height of binary search trees: random...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2001